pan: Remove wrong check
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 16 May 2014 16:33:05 +0000 (18:33 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 May 2014 17:54:31 +0000 (19:54 +0200)
From the very early days where there were a NONE=0 GtkPanOrientation
value. This makes vertical pan operations work as expected.

gtk/gtkgesturepan.c

index b166388b38c3f2c3bb83dc90182fc1a9c653f8e1..660f3d9b316d64c6c9f547d5504b953ebe4f8a57 100644 (file)
@@ -158,9 +158,6 @@ check_orientation_matches (GtkGesturePan   *gesture,
 {
   GtkGesturePanPrivate *priv = gtk_gesture_pan_get_instance_private (gesture);
 
-  if (priv->orientation == 0)
-    return FALSE;
-
   return (((direction == GTK_PAN_DIRECTION_LEFT ||
             direction == GTK_PAN_DIRECTION_RIGHT) &&
            priv->orientation == GTK_PAN_ORIENTATION_HORIZONTAL) ||